package com.itcast.ssm.pojo;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author 三人行
 * @since 2020-09-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 房东id
     */
    private Integer orderOwnerId;

    /**
     * 房源id
     */
    private Integer orderHouseId;

    /**
     * 租客id
     */
    private Integer orderTenantId;

    /**
     * 入住时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderCheckInTime;

    /**
     * 离开时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderLeaveTime;

    /**
     * 订单下单时间
     */
    //出参格式化
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date orderTime;

    /**
     * 订单价格
     */
    private Integer orderPrice;

    /**
     * 订单状态，0代表租客下单，1代表确认出租
     */
    private Integer orderStatus;
}
